class CreateTodos < ActiveRecord::Migration
  def self.up
    create_table :todos do |t|
      t.integer :user_id
      t.string :name
      t.date :start_d
      t.time :start_t
      t.date :due_d
      t.time :due_t
      t.string :effort
      t.string :prio
      t.integer :time_required
      t.string :context
      t.timestamp :done
      t.text :note

      t.timestamps
    end
  end

  def self.down
    drop_table :todos
  end
end
